home *** CD-ROM | disk | FTP | other *** search
- Path: ecf2.puc.edu!bivey
- From: bivey@ecf2.puc.edu (Bruce Ivey)
- Newsgroups: comp.lang.c++
- Subject: Re: H and L files
- Date: 19 Jan 1996 00:13:35 GMT
- Organization: CRL Dialup Internet Access
- Message-ID: <4dmnnf$pft@nntp.crl.com>
- References: <Pine.SOL.3.91.960117225206.12395C-100000@eesun1>
- NNTP-Posting-Host: ecf2.puc.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Sanjay Joshi (joshi@eesun1.tamu.edu) wrote:
- : Hi!
- : Can anybody tell me the difference between Library and Header files?
-
- : Thanks
-
- : Sanjay
-
- Header files are ASCII source files containing things like constants
- (#define or const), function prototypes, and so on. They can be supplied
- by the system (#include <stdio.h>) or by you or your programming
- partners (#include "employee.h"). Usually each header file you write
- (which contains interface information) corresponds to a .c file with the
- implementation.
-
- Library files are pre-compiled routines which can be linked directly into your
- program. If you find you are often using the same .h/.c files and they
- don't change often, they can be compiled into library files of your own.
-
-
- -----------------------------------------------------------------------------
- Bruce Ivey Dept of Physics & Computer Science Pacific Union College
- Angwin, CA 94508 bivey@puc.edu (707) 965-7269
- =============================================================================
-